package cn.akwangl.design.pattern.creational.simplefactory;

/**
 * @author youyongkun
 * @date 2021/11/23 14:55
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {
        AbstractVideoFactory video = VideoFactory.getVideo(JavaVideo.class);
        video.produce();

        video = VideoFactory.getVideo(PythonVideo.VIDEO_NAME);
        video.produce();
    }
}
